package com.addcn.pushlibrary.oppo;

import android.content.Context;
import android.util.Log;

import com.addcn.pushlibrary.LPush;
import com.addcn.pushlibrary.bean.PMessage;
import com.heytap.msp.push.mode.DataMessage;
import com.heytap.msp.push.service.DataMessageCallbackService;

/**
 * author:luwenbo
 * created on date : 2019-05-21
 * content:
 * describe:
 */
public class LOppoReceive extends DataMessageCallbackService {
    @Override
    public void processMessage(Context context, DataMessage dataMessage) {
        super.processMessage(context, dataMessage);
        Log.i("LOppoReceive","processMessage");
        PMessage pMessage = new PMessage();
        pMessage.setTitle(dataMessage.getTitle());
        pMessage.setContent(dataMessage.getContent());
        LPush.getInstance(context).onMsgReceiver(pMessage,false);
    }

}
